package io.renren.modules.jxgk.service.impl;

import io.renren.modules.jxgk.dao.CourseDiaryStateDao;
import io.renren.modules.jxgk.entity.CourseDiaryStateEntity;
import io.renren.modules.jxgk.service.CourseDiaryStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CourseDiaryStateServiceImpl implements CourseDiaryStateService{
    @Autowired
    CourseDiaryStateDao courseDiaryStateDao;
    public List<CourseDiaryStateEntity> queryList(Map<String, Object> map){
        return courseDiaryStateDao.queryList(map);
    }
    public int queryTotal(Map<String, Object> map){
        return  courseDiaryStateDao.queryTotal(map);
    }
    public void deleteBatch(String[] termIds){
        courseDiaryStateDao.deleteBatch(termIds);
    }
    public void save(CourseDiaryStateEntity ste){
        courseDiaryStateDao.save(ste);
    }
    public CourseDiaryStateEntity queryObject(String index){
        return courseDiaryStateDao.queryObject(index);
    }
    public void update(CourseDiaryStateEntity ste){
        courseDiaryStateDao.update(ste);
    }
    public List<CourseDiaryStateEntity> queryList2(Map<String,Object>map,String date){
        return courseDiaryStateDao.queryList2(map,date);
    }
}
